Resource URL: /platform/<<version=1>>/protocols/hdfs/racks/<ID>

    Overview: This resource applies the collection of HDFS racks.

     Methods: GET, PUT, DELETE

********************************************************************************

Method GET: Retrieve the HDFS rack.

       URL: GET /platform/<<version=1>>/protocols/hdfs/racks/<ID>

Query arguments:
zone=<string> Access zone which contains HDFS rack.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "racks": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "This is schema that contains HDFS rack properties.", 
            "properties": {
              "ip_pools": {
                "items": {
                  "type": "string"
                }, 
                "type": "array", 
                "description": "Array of IP pool names to use for serving clients from client_ip_ranges."
              }, 
              "client_ip_ranges": {
                "items": {
                  "type": "string"
                }, 
                "type": "array", 
                "description": "Array of IP ranges. Clients from one of these IP ranges are served by corresponding nodes from ip_pools array."
              }, 
              "id": {
                "type": "string", 
                "description": "The ID of the rack."
              }, 
              "name": {
                "type": "string", 
                "description": "Name of the rack"
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify the HDFS rack

       URL: PUT /platform/<<version=1>>/protocols/hdfs/racks/<ID>

Query arguments:
zone=<string> Access zone which contains HDFS rack.

PUT request body schema:
{
  "type": "object", 
  "description": "This is schema that contains HDFS rack properties.", 
  "properties": {
    "ip_pools": {
      "items": {
        "type": "string"
      }, 
      "type": "array", 
      "description": "Array of IP pool names to use for serving clients from client_ip_ranges."
    }, 
    "client_ip_ranges": {
      "items": {
        "type": "string"
      }, 
      "type": "array", 
      "description": "Array of IP ranges. Clients from one of these IP ranges are served by corresponding nodes from ip_pools array."
    }, 
    "name": {
      "type": "string", 
      "description": "Name of the rack"
    }
  }
}

There is no JSON response body for this method.

********************************************************************************

Method DELETE: Delete the HDFS rack.

          URL: DELETE /platform/<<version=1>>/protocols/hdfs/racks/<ID>

Query arguments:
zone=<string> Access zone which contains HDFS rack.

There is no JSON response body for this method.
